﻿using System.Runtime.Serialization;

namespace FU.Capstones.IMS.Web.Common.InventoryServiceProxy.Respondents
{
    [DataContract(Namespace = WebConstants.ServiceNamespace, Name = "{0}Feedback")]
    public class SingleFeedback<T> : Feedback
    {
        private T data;

        [DataMember]
        public T Data
        { 
            get { return data; }
            set
            {
                if (!ReferenceEquals(data, value))
                {
                    data = value;
                    RaisePropertyChanged(() => Data);
                }
            }
        }
    }
}
